import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';
import './route_handlers.dart';

class Routes {
  static String root = "/";
  static String detail = "/detail";

  static void configureRoutes(FluroRouter router) {
    router.notFoundHandler = Handler(
        handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
          return Container(color: Colors.yellow);
        });
    router.define(root, handler: rootHandler);
    router.define(detail, handler: detailRouteHandler);
  }
}